package com.netease.task.meta;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    private Integer orderId;

    private Integer bookId;

    private String bookPicture;

    private String bookTitle;

    private Integer buyNum;

    private BigDecimal buyPrice;

    private Date buyTime;

    private Integer isComplete;

    public Order(Integer bookId, String bookPicture, String bookTitle, Integer buyNum, BigDecimal buyPrice, Date buyTime, Integer isComplete) {
        this.bookId = bookId;
        this.bookPicture = bookPicture;
        this.bookTitle = bookTitle;
        this.buyNum = buyNum;
        this.buyPrice = buyPrice;
        this.buyTime = buyTime;
        this.isComplete = isComplete;
    }
}
